package core;
import core.models.Group;
import core.models.Store;
import core.models.Wagon;
import core.views.StartPanelMain;
import core.models.Rations;
import core.models.Professions;
import java.io.Serializable;

/**
 * 
 * @author 4c1a
 *
 */
public class Runner implements Serializable
{
	private static final long serialVersionUID = 1L;
    private Group group;
    private Store store;

    
	public static void main(String[] args) {
		// Store variables
		int bulletPrice = 5;
		int foodPrice = 1;
		int gunPrice = 5;
		int medicinePrice = 10;
		int wagonAxlePrice = 100;
		int wagonTonguePrice = 50;
		int wagonWheelPrice = 60;
		int clothingPrice = 5;
		int oxenPrice = 150;
		Store store = new Store(bulletPrice,
				foodPrice, 
				gunPrice, 
				medicinePrice, 
				wagonAxlePrice,
				wagonTonguePrice, 
				wagonWheelPrice,
				clothingPrice,
				oxenPrice);
		
		Wagon wagon = new Wagon();
		Group group = new Group(wagon);
		group.setProfession(Professions.BANKER);
		group.setRation(Rations.MODERATE);
		group.setName("All the things");
		Runner runner = new Runner(group, store);
		StartPanelMain.run(runner);
	}
	
	public Runner(Group group, Store store){ 
		this.group=group;
		this.store=store;
	}

    public Group getGroup()
    {
        return group;
    }

    public Store getStore()
    {
        return store;
    }
    
    public void setGroup(Group group)
    {
    	this.group = group;
    }
    public void setStore(Store store)
    {
    	this.store = store;
    }
}
